package com.avecsys.quotemanager.pojos;

import java.io.Serializable;

/**
 * @author Guru
 * 
 */
public class SystemUsersPojo extends BasePojo implements Serializable {
	
	private Long systemUserId;

	private CompanyMasterPojo companyMasterPojo = new CompanyMasterPojo();

	private UserMasterPojo userMasterPojo = new UserMasterPojo();

	private String isAdmin;

	public String getIsAdmin() {
		return isAdmin;
	}

	@Override
	public String getPkColumnName() {
		return "systemUserId";
	}

	public CompanyMasterPojo getCompanyMasterPojo() {
		return companyMasterPojo;
	}

	public Long getSystemUserId() {
		return systemUserId;
	}

	public UserMasterPojo getUserMasterPojo() {
		return userMasterPojo;
	}

	@Override
	public boolean isPersisted() {
		if (systemUserId == null || systemUserId.intValue() == 0) {
			return false;
		} else {
			return true;
		}
	}

	public void setIsAdmin(String isAdmin) {
		this.isAdmin = isAdmin;
	}

	public void setCompanyMasterPojo(CompanyMasterPojo companyMasterPojo) {
		this.companyMasterPojo = companyMasterPojo;
	}

	public void setSystemUserId(Long systemUserId) {
		this.systemUserId = systemUserId;
	}

	public void setUserMasterPojo(UserMasterPojo userMasterPojo) {
		this.userMasterPojo = userMasterPojo;
	}

}

